---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-60af08c13081> in <module>()
14
15 # Train the model using the training sets
---> 16 regr.fit(x_train, y_train)
17
18 # The coefficients
/usr/local/lib/python2.7/site-packages/sklearn/linear_model/base.pyc in fit(self, X, y, sample_weight)
425 n_jobs_ = self.n_jobs
426 X, y = check_X_y(X, y, accept_sparse=['csr', 'csc', 'coo'],
--> 427 y_numeric=True, multi_output=True)
428
429 if ((sample_weight is not None) and np.atleast_1d(sample_weight).ndim > 1):
/usr/local/lib/python2.7/site-packages/sklearn/utils/validation.pyc in check_X_y(X, y, accept_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, warn_on_dtype, estimator)
511 if multi_output:
512 y = check_array(y, 'csr', force_all_finite=True, ensure_2d=False,
--> 513 dtype=None)
514 else:
515 y = column_or_1d(y, warn=True)
/usr/local/lib/python2.7/site-packages/sklearn/utils/validation.pyc in check_array(array, accept_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, warn_on_dtype, estimator)
405 " minimum of %d is required%s."
406 % (n_samples, shape_repr, ensure_min_samples,
--> 407 context))
408
409 if ensure_min_features > 0 and array.ndim == 2:
ValueError: Found array with 0 sample(s) (shape=(0,)) while a minimum of 1 is required.